﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

  public  class RegisterAdminBAL
    {
       private AdminRegDAL _AdminRegDAL;

       public RegisterAdminBAL() : this(new AdminRegDAL()) { }
       public RegisterAdminBAL(AdminRegDAL AdminRegDAL) { _AdminRegDAL = AdminRegDAL; }


    public int InsertRegistration(AdminRegBO AdminRegister)
    {

        try
        {

            return _AdminRegDAL.CreateAccount(AdminRegister);



        }
        catch (Exception ex)
        {
            throw ex;


        }
        finally
        {

            _AdminRegDAL = null;

        }
    }
    }

